Added some code for a popup in main.js, its generic