initial functionality

added in functionality for all pages. Issue with adding. Giving error
of $scope.item.$add is not a function.