Added Guard/Listen to auto-switch platform
independent event listeners