Window opening and closing setup