add on click event for accept button.