removed initPages content - needs to be rewritten