how to add popupmenu