edits to prompt and update handling