adding input to main.html
wired up button to funtion