Minor additions to previous commit
Added functionality to change command input field value according to chosen command.