making some of the more redundant html into looping ANGULAR js