inserted expression function into Diagrams menu