user angular timeout instead of javascript settimeout