Added ability to update newly added document