add z index during object adding