Using config to get baseUrl instead of hardcoding it