Rewrote a custom view controller. Allows for orientation change