now dynamically generating columns using instance variable @columns defined in the controller