fixed infinite loop but that react got into by rendering server twice, once for layout and once for body. fixed router, fixed views.