context menu now behaves correctly and updates all ui elements