Button optimization