added renderBody method