change upload button and refresh files ui after upload