Add functionality to provide dynamic contentType with render functionality