added upload form for csv. not perfect, but it works in most cases