I need to show or hide a custom widget in base on a condition, permission or any user properties. Now when user have not permission to see this widget, the content is not displayed but the header and borders of the widget are still displayed. Can i hide the widget completely programmatically?