[_mainTable beginUpdates];
[_mainTable insertRowsAtIndexPaths:indexPath withRowAnimation:UITableViewRowAnimationTop];
[_mainTable endUpdates];
[_mainTable beginUpdates];
[_mainTable deleteRowsAtIndexPaths:selectedIndexPath withRowAnimation:UITableViewRowAnimationTop];
[_mainTable endUpdates];