Allow to pass the action which calls a wizard

issue3675
review3921002