adding handler for enter keypress