Removed test code from ViewRefs

Fixed bug where AddRefsDialog was attempting to invoke the wrong close
Action.