added base html template, more functionality