put initialization codes in postCreate method