second version

added view and add function for controller