added next handler, FormValue to pass selected folder name