Added a new modal EventsSupport to handle the on and off functions. Added EventsSupport to Layers and TabBar