changed layout template to take explicit title/html params