added new popup functionality