My electron app has more than 1 html files. When I call a function in one of my html files and click to another html file to check something else, the function stops working in my first html file. How can I solve it ?