wrote code for buttun event handler