removing stupid alert() from controller