search term now also cleared when changing tab