combining views with controllers