remove redundant code
add back grid render option