Preloading works. Still need updateQuery and update checkboxes