pattern events
fix: Cannot modify header information - headers already sent