EditAdmin code works correctly