Improved popup modal positioning

Now appears at the top of the page instead of forcing the page to get
longer