corrected a links logic bug and orginised ngWidApp file