added auto update with angularJS $timeout