Updating style and display of buttons