move functions to make a component into an inline editable form into a file that isnt for the edit views