modified picking, added window visualization