updated example onShow and onHide callbacks