fixed the buttons to show the blocks of code