initialize MapCharacter in setPageIndex mthod