Creating clients index page, refactoring pages index code