fix(tasks): improve task editing

SD-845
fix(tasks): tweak performance

and name some func to make profiling easier

SD-867
fix(auth): fix login modal not showing on auth error