Button click on leave