Added ontouch to save entries when losing focus.