removed old flicker code in popup