Replace index selection with GTK natives.
Replace search selection with GTK natives.
GUI code reduction and refactoring.