form: implement saving. sketch out message handling for main modules