index styling and bug fix