added enter key functionality