Fixed an issue where rotation was allowed and caused buttons to appear out of visible view.
Cleaning up main view controller.