link addEventListener click do not overload page code example
Example: event listener works without being clicked
document.getElementById("main_btn").addEventListener("click", function (){
hideId("main");
});
//dont call the function directly, use function that calls it