https://gist.github.com/jbruni/6737078
Popover manual controls