added shownextMessageOrHide method