more work on popup menu