Added alert message functionality to datahandler