Improve search and and add filtering to records tab