My sisters keeper

I am raising my niece and the mother pops in and out of her life and it is confusing her what should I do