add new window functionality