added app loader to start and stop the app