added ability to change grabbing mode