fix button's action