add thead and tbody to view generation
remove upper bound rails dependency