add id to the alert box so it can be referenced from the URL