update react to 0.12 and fixes bugs