adjusted the behavior for returning layout wrappers