remove unnecessary cells from table view.