adds alert and actionSheet