scaffold custom header function