refresh boxes every five seconds