Added methods to get and set popup menu.