refactoring
implements HTML view export