move edit function to admin interface