added html and ruby code to controller
can dynamically change the table