added view and action to controller