added enter button functionality without html form