added panning behavior