Fixed various add/edit interface issues, added reopen function