Implemented index.html main functionality.