renamed method getContent to render