Add broadcast and on events
Add controller to directive
Removed unused scope variables