move model to ModelJar
use DOM instead of html to build contents