Tomic to take legal action against Hewitt