Refactored to use Defered ajax
Added internal id prefix type
Added list functionality