update path to file
update to use event delegation