Make newButton return a dictionary