added caret and close button