fix reference error
fix event deligate; fix attributes; fix event data