Changed the app mode