moved app launch into different functions and added a develop feature for local running