wrapped the couch function in: $(document).on('pageinit', '#viewData', function ()