search working and redirects to root