Add char counter and refactor home page