added swtich tableviewcontroller method. fixed segmented controller logic so scrolling doesn't jump.