Index action and view working with pagination