refact network part and add demo for notification