clean up tasks partial rendering code