update popup layout