updates to render functionality