ui behavior for text and button