used erb template to render page