added func. to the favorites tab