add styles and made index page work