Reload page only after logout call has finished