=BG= split static pages functions into a separate module