How to make a form which "collapses" and navigate between section upon a condition is met