no duplicate items

Added hasItem(id) function which return true if an item with specific id exists.
Called updateSelection method when an item is added dynamically using addItem method.
Corrected list table style issue and set cellpadding and cellspacing to 0