updated the way to display the block