add hook in initiai state