refreshing every set interval (badly)