order of button scripts fixed