Added pagination and fixed nested resource routing error