updates before restyle