Creating the application controller