Implemented logic for showing dialog in period after last show.