assigning a collection to a class the page is divided issue resolved