Fixed "Manage documents" and "Unpublish" buttons

Fixed the functionality and added buttons as menu local tasks instead of hard-coded buttons in template