Support loading patches in popup