clean the warning of detailview constraints