renaming functions
fix page types, add footer global area