context menu: refactored to use classes instead of 'for' attribute