Added new interface with already loaded dom and html, avoiding the need of an ajax request to get the html code