added functionality to the addmin panel