Added constrains and alignment to the view elements to align the elements properly.