Fix for confirmation popup (problem with destroying on leaving view, when target view contained the same element id)