add console in onShow of panel