update popup menu variable