refactor home page view to use a template
included input box