Add ViewTrait to Add and Edit actions, fix composer file