popup and checkbox working