Convert context menu methods into lambdas for succinctness.