modified app js adding news functions