AddButtonWithTitle returns the index of the new button