fix bug with resetting the upload form
fix setting dates