fix event not delegated problem in views