solved problem about updating popup accoring to topic