clean up controller template