working functions and files for editing forms