added a setup script
resize only in window size has changed