pan to main