Add text tool functionality and update layer object adding