update text styles and z-index