reversed button and inputs for adding a key value pair