cleaned up code and comments
implemented adding a collection via a modal dialog box
demo: updated the angular method to know the id of the table it's referencing