refactored form handling

implemented 'add'