Added method to completely hide the main view

Needed for the search bar operation on side menu / TMMenuViewController.