modified thumbnailControllers.js do api requests to the server instead of local host