creates html form for user input and separates homepage and results page