refactor routes adn shares page