updates to allow alerts to be prepended to elements