code clean up for for application html