add pali keypad and toogle function