added enter button functionality