Make it possible to delete and edit document directly from there as well as open document from a file directly. (cherry picked from commit ccf64949)