further improvements to interface.py

added structure for popup menus