modified the list method and ngrepeat function to a good edition.