added lcd switch function