Added scrolling and constraints to the detail view