working on popup bug