changes made to show alert