Add resignFirstResponder to the method onAddButtonPressed