close button working still got headers erros