Some minor functionality.

Edit and delete buttons
Fixed bug with edit page.

Resolved it via redirect to new edited document.