refactor rails
display group
refactor rails