Don't open popups in a callback

@hkal https://www.pivotaltracker.com/story/show/66801618