destroy when javascript is not enabled