added ability to press enter to automatically calculate