create an instance in appdelegate and call view controller to update every second.