before add histories controller