Development of beam stabilization and phase modulation units for 2D IR instrument