Seperate the controller from the main app