updated doc for d4 and fixed view attributes