refactored upload and created download possiblity in file manager