Fixed menu index after closing page in browser