added front end filtering functionality