form submit and result page functioning now