added alert to click event to meet requirement