Auto-indent, speed optimisation, Bugfixes:
 * Fix for bug with selections getting misplaced on shortened list
 * Fix for bug with selections behaving wierdly when selected item got removed