Add popup directive (WIP)