corrected tasks toggle and sort