centered input boxes, refactored code, displays user input on page