Speeding up button assignments