fixing button scripts