implemented shutdown button