Event if the page is loaded with parameters in URL, everything works fine
now hiding layers instead of remove it, and bugs resolved