writes project controller