Popup modal and alert service implementation.