simplify popup drawing