Added back the logic for the lcd update