added functions to enable and disable drawing text