removed some debugging code and fixed some bugs in favorite deletion