adding admin logic