update the style of form