changed from using base_url to app_url