change event in confirm controller and clean code in preview controller