replaced setInterval by setTimeout
to prevent waiting for the first loop of setInterval when the application
starts.