Merge pull request #905 from sunnychaudhari/collection_save

Collection save is made on click of save button, remodified collection manipulation methods
bug resolved in sync_existing_documents