Made the controller inherit from the host app