Update document functionality added

delete document is not working properly