index now shows updated data and applied css