added search funcionality