fixed issue where click-popup was not working