fix(view): fix lifetime of return type