Finished custom logout alert
Cleaned up some code