Instead of string HTML, classes now build DOM elements. Added drag events