add showLine function(not interval based)