css chees and changed from setInterval to $interval