Added delegate methods for panning