Added initial handling of user input (through creating DOM nodes