Scratching and flicking is often caused by water quality issues and can be seen in a newly established tank. If that's all you see, I'd hold off and not treat with anything. Up the water changes and make sure the filtration is sufficient long term. The flicking and scratching will stop once the water quality is up to scratch.

