Added step index as parameter for onShow() and onHide()