Added the alert method in DataController (forgot to include it last time)