added preview in file upload