changed api urls to relative