setting up controllers with models