~The popupmenu now automaticlly shows the state of the selected object.