do not need appRouter variable
add base url to pin fetching call
cleanup of debug code