adding popup functionality for new advertisement