add good edit function in admin page