added panning to visualization