moved goal equals nil or zero and percentage logic from views to control...

...ler