added control buttons to edit and delete document. Implemented delete