OnAcceptCancelTriggered

Function to be called when the accept/cancel buttons are clicked.