Added persisting of events through firebase
Fixed delete