adjustment to logic for toggle grab