added simple class name into object type list, used list item to show list, refactored code