use proper templateresponse classes