Added flowchart for mouse click