linking interval counting the ui through a simple message dialog