Updating search word functionality