Defined what happens on render