added shutdown dialog