fixing bugs with adding and deleting favorites