applied correct style to show all buttons when they are clicked