Removed rename functionality for objects in tree view because it's redundant. Fixed closing a module.