working with modal and popups