Call correct render function