Working popup implementation.
(Still hideous)