Removed gray bar at bottom issue and restructure how height is generated on main views