added add/remove favorites function.