set up controllers