Use g_timeout_add_seconds to refresh GTK GUI instead of second thread
Use timeout to refresh NCurses TUI instead of second thread