Added a legend box and highlight of blocks from it