fixed a bug for edit view and made test_edit_entry test case to pass