fixed some bad decisions i made with the popup template.

Also added positions to the popup and a link