some changes to static page controller. Broke some things