Adding controller to framework.