Refactored admin functionality. Added static pages.