Refactor clock classes and fix issues on setting text