adds method for adding a child view and applying layout constraints so that the child fills the parent view