optimized infopopup class