Factored task display into a template

Some styling tweaks as well