splitting methods to support both views & layouts