changed event for init() and added a few events