added filtering for overdue and inactive tasks