Refactor LCD Handler