Fixed popup bug by adding popup.html file