preview query will remove on close adding widget window