cleanup html after dialog close, add application configuration load class