More work on contextMenu

The contextMenu now works at some level (it's not perfect yet).