• onLoad event sometimes not firing and hence SearchReset() not getting hit, so moving it to an inline call

  • Fix up bugs in the flag management