adding snap window scripts