fixing url and removing alert