added pagination and sorting admin for complete task and fixed conditions for viewing projects