Add state if statements to Recent and Loved sidebar view.