Switch statement for context menu