templates styling for api