fixing form attributes update