fixes bug, url now called from viewWillAppear