Replace deprecated modal mthods.
Reconnect outlets