implemented onShow trigger