Added small change to allow search on click