change screen resize code