Contextual menu generator