Creating application level controller