Added angularJs code to dynamically update data on page