Added main app and that handles the apps logic