fixed hiding index on home page
added router.refresh() on login to enable editor