What happens if there is more than one overlay on a page? Could there be conflicting ids? Perhaps should have a global counter to ensure unique ids.