add html truncation and change views