Add popup functionality