Added missing set-method
fixed the view logic for setting value