hide the painting mode