added a check for longpress ended