initial refactor of html page