added functionality to display alert for action on homepage