simplifying favorites handler