Moved some functions
isStaticPage added