Added deactivate to modal js