checkbox placement moved to the loading function