added enter functionality
added enter functionality