If this gets changed to a view then this method will need to be changed to render()