adding trigger event for logout