Move page specific code to separate file