fixed up server. added in the submit/search stuff