better popup session setup