Responsive table for index and helper method for view