Adding base_url, fixing all the errors i made from this because i did it a dirty way