fix #7, add function for popups