Adds to the view constructor