added remove function and connected it to firebase