guard handler layout functions