Removed all event triggers.
Fixed some bugs