adding controller to AfterController event