change panel, index.html, headlight, and some refactoring
another refactoring