improved formatting output by adding button to switch it off and not displaying it when there's no formatting option