Added project controller logic and added logic to taskcontroller