modified addmin controller