added search functionalities