fix scanner cancel, edit scanner UI