Added full dialog functionality. At the end of counter, a dialog is shown based on the task (tag) running.