Moved alert to its own class