add close button to logs