Changed logic to detect type clicked and create arcs based on that, Fixes #9