remove unnecessary code in grabbuttons