added listener for keypad