making the app have controller