edit document index and added upload to app