x button doesn't force the page to refresh