Update index.php and Application.php
Support many new features.