added logout handling event