fixing menu bar issues with selection sort