update loop in separate interval function to assure execution in case of background tabs