Added text tool functionality