ajax works; change formatting and add keypress events