Moved <dialog> close buttons to top