design: minibutton using css
core: fix two minor issues found by coverity