Implementing invoking onShow event