Added events onCreate, onShow, onHide