adding destroy feature on scope
adding emit and brodcast feature