Added settings page. Updated app state management.