Added listener for logout query string