updated gallery and fileupload