Allow switching away from the app
refactored config stuff
Fix orientation into portrait mode