add flowtype and style update