Add filtering ability to tableviewcontroller
Some fixes