updated index, logic, and stylesheet