Implement cancel button.