popup functionality added