finished controller for app