cleanup
adding template controller