Fix jQuery UI tabs refreshing bug