Refactor projects and tasks views