added atomic decorator, added checks for /pages/ in url