EDIT - set all titles of pages , code refactoring