added flag and logic to detect if gripper just closed or opened, added mts events for gripper state