improved ui and add edit function,but facing 404 when refresh