Wait Box For Unit Switching

#2732 
Also, please include the text mentioned in the issue:
"Unit is being switching: please do not leave this page until it has completed!"