pan and front end stuff