boxes hide and unhide based on the length of the cal array