fixed pop up window and fixed routes