Added filter to todos according to priority