Add basic support for popup menus with simple callbacks