Added events before and after initBody