created an event listener for all the requests to replace deprecated hook_boot