Alert message functionality

Alert message functionality that works well as of now