initialize popup more generic