Change logout function.

Change logout button click event.
Add confirm.