Fixed a bug where the new/edit forms were not being cleared after submit