keep modal and inline edited data in sync
merged master
fixed bug in module view if no valid template is set
fixed bug in module view if no valid template is set