fix button bugs on design mode