adding StaticPages, changed root depending on signed in status