restyle so it fits the window