#pgwModal and 'target' in the same $scope context

Add #pgwModal next to the 'target' so they have the same $scope context