added online and offline events