setting up local window