insert constraint to view