added 'draft pending' filter logic