Changed render method to renderTwig