updating text alignment