refactored layout with sliding settings page