Changed to use view height instead of screen height

Changed controller to use view height so that you can have adjustable height for the controller for in the case if you want a nav or tool bar above the controller.