Refactor task/project/client rendering and selection