Add a new subscriber for the frontend.
Add a new event for the frontend.

Now it is possible to call the addToUrl function from the frontend class.