How to create an interactive flowchart