add and remove favorites in local memory