Injecting alert in controller