added .alert to controller