tested online offline events and added to app scope