moving base_url to before filter