added the code to show the buttons