refactors persitent links and notices with methods into partials