Adding UI snippets and sanitizing data input.