fix edit function
fix flags link
fix form