fixing edit form bugs