Added Popup box functionality