added control panning