added delegate method for pan gesture activation