added pagination to models
added permitted parameters