Created helper method for tat rendering on index.