further ajax improvements