Fix some reference to urls in application controller