code changes for admin menu