added search functionlity