Correcting example of isolated scope function binding

Moving the ng-hide to be in the scope outside the directive in stead of inside and calling the hideDialog function from the controller in stead of just switching the variable boolean value.