adding firebase add and delete function