fixing redirect for submit page