move html into external view