Implemented Modal destroy functionality so as to restore the initial
HTML for each configuration.