work on the add param in search directive