Code to update task panel index was mistakingly removed during refactor