Added form and output to index page