fix fileinput views new and edit