Updated dialog and summary element position; now included from JS rather than from the template. Updated old element in query selector when pdating summary