convert all gesture actions to use events for better modularity add network event handlers and device event handlers