hide cursor when it is not in use