controller set-up and template