trying to add logout listener