fix rendering of buttons