fixing some stuff with table view