fix event clicks by delegation