updated checks and fixed index.html