adding controller and data to app