fixed some tests and close button for ui