functioning app without methods in controller