Update function extract_blocks and correction css