added character counter, externalized some strings