updated to demo functionality of hitting enter key