Added constraints to views