added enter functionality