some optimization
some structure for detailed info window