add html safe to main view