views now emptying the parent before attaching the template