readd panning after refactor