fixed index redirect for form submit