added Enter key functionality