Fixed bugs in loading popup and modified gitignore