create a base template use layout