add alerts un main controller with a close option