use initialize method for component