Function that creates pop-ups
pop-up functions are now in a seperate file