fix up issue with using wrong listener for registering background setinterval