Functioning window creation and navigation based on a single url