fix bug with popup open by id