better handling of share form