fix base controller to get layout right