Flip path on click