refactor html and js to be more like pages and use actual form functionality