App seperated from main code