Adding functionality to admin activity