fixed API paths to match pages correctly