clean up web mode
fix indentation