use event delegation for the file input change handlers