refactored viewtask to use listcomment and listattachment partials