implementing styles for index