working on admin controller logic