change example code to use new API. Implement moving items in table view properly. Set default header and footer style to be title style.