preparing for screen resize