refactored index.js

changes the theme
refactors index.js
fixes chat after rebase.