fixed the delete button to finish the app