replaced the enter key check with form submission checking for updating the title