implements select window