change style when has text