finish with popup functionality