improve(optimization/optimize): show graphs only after successful call to back-end