use a single constraint and set it dynamically for detail view