added $broadcast.$on functionality when performing CRUD and further styled the views