added indexing step after file is uploaded