Attach view to the parent when creating a new view instead of passing null.