added Alert message functionality