adds links to posts from index page and edit links on posts' show pages