Fixed problem with variables, added form to results page