angularized timer functionality