Updates the maxBlocks when the blockly UI is visible