use longpress to toggle mode