before implementing popup timer