Add and edit button to every document page

closes #1