added alert when button is tapped