Moved AHAH triggering logic to use HTTP headers