create requestHandlers and call them as user request for each pathname