solved popup trigger problem