refactor rabl rendering