switched to react and some minor improvements of the examples