interface: moving js to js files, edit name and add card forms