update popup class positions