add entity to controller and to view