Properly handle checking "development mode" in popup