style update and dom changes