polish up the html view and ready it for optimization