use registers[:view] instead of helper