Implemented a selection window