adjust x length at update page