Adding favorite toggling logic to modalwebviewcontroller