It's done by sheet_delegate.

Thanks for all the help.