create controllers and models