Move functions to perform single, multi and range-selection into the ui module

refs #5765