added contact filter functionality