Used the asynchronous nature of load() to fix the log out button bug