adding pagination cotroller
fixing models