added checking for centered input box in functional tests
refactor templates to use base template