Add notification when connected + global scope var