fixed another bug where the input fields were not being cleared before opening a new item dialog