added form to select functionality. added esc key press to dismiss form