fixing the app template so it works in the simulator