Use angular  instead of setInterval