generator model, collection e view