add tool-mode class to body (if tool mode is active)