removed old jQuery dialog code